﻿namespace DatabaseProxy.Attributes;

/// <summary>
/// 长度限制
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class StringLengthAttribute : ValidateAttribute
{
    private int _length;
    public StringLengthAttribute(int length)
    {
        _length = length;
    }

    public int Length
    {
        get => _length;
    }
}